package com.jing.product.domain.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author：HaoYunde
 * @Package：com.jing.product.domain.dto
 * @Project：Jing
 * @name：ProductCategoryRecursionDTO
 * @Date：2024/6/4 10:53
 */
@Data
@ApiModel("商品分类递归")
public class ProductCategoryRecursionDTO implements Serializable {
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("上级分类编号：0表示一级分类的编号")
    private Long parentId;
    @ApiModelProperty("/商品分类名称")
    private String name;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<ProductCategoryRecursionDTO> chilren;
}
